package com.whs.demo.progress;

import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.whs.demo.assets.Assets;


public class ImageRotation extends Actor {
    
    
    private TextureRegion region;


    public ImageRotation() {
        region = Assets.testAtlas.findRegion("world1");
        setSize(region.getRegionWidth() , region.getRegionHeight());
    }
    
    
    @Override
    public void draw(Batch batch, float parentAlpha) {
        // TODO Auto-generated method stub
        super.draw(batch, parentAlpha);
      
        batch.draw(region, getX(), getY(), getOriginX(), getOriginY(), getWidth(), getHeight(), getScaleX(), getScaleY(), getRotation());
    }
    

}
